package com.ibiaoke.order.service;

import com.ibiaoke.customer.entity.TradeRecorder;
import com.ibiaoke.order.entity.XcxOrder;
import org.springframework.transaction.annotation.Transactional;

import java.util.Map;

public interface XcxPayOrderService {

    //账户余额付款
    @Transactional
    void payXcxOrderByDepositPay(XcxOrder xcxOrder, String smsCode);

    //微信付款
    @Transactional
    Map<String, String> payXcxOrderByWe(Integer xcxOrderId, String openId);

    //账户余额充值
    @Transactional
    Map<String, String> payDepositChargeByWe(TradeRecorder tradeRecorder, String openId);

    //微信退款
    @Transactional
    Object refundPayByWx(XcxOrder xcxOrder);

    //账户余额退款
    @Transactional
    void refundPayByDeposit(XcxOrder xcxOrder);

}
